package com.sky.service;


import com.sky.entity.AddressBook;

import java.util.List;

//查询登录用户所有地址
public interface AddressBookService {
    List<AddressBook> list(AddressBook addressBook);

    //新增地址
    void save(AddressBook addressBook);

    //根据ID查询地址
    AddressBook getById(Long id);

    //修改地址
    void update(AddressBook addressBook);

    //设置默认地址
    void setDefalut(AddressBook addressBook);

    //根据ID删除地址
    void deleteById(Long id);
}
